﻿using mak_bll;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace markets
{
    public partial class Addyuangong : Form
    {
        public Addyuangong()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            string name = txtyua.Text;
            string pwd1 = txtsex.Text;
            string pwd2 = txtage.Text;
            
                   
            if (name == "" || pwd1 == "" || pwd2 == "")
            {
                MessageBox.Show("请输入完整");
                return;
            }
            if (pwd2 != pwd1)
            {
                MessageBox.Show("填写的两次密码不一样");
                return;
            }
            luoji add = new luoji();
            //add.yuanadd(name, pwd1);
            MessageBox.Show(add.yuanadd(name, pwd1).ToString());


        }
    }
}
